package com.ty.paypal.core.request;

import com.paypal.http.Headers;
import com.paypal.http.HttpRequest;
import com.ty.paypal.core.Subscriptions;
import com.ty.paypal.core.request.body.SubscriptionsRequest;

/**
* @author ty
* @createDate 创建时间：2020年2月21日 下午4:42:32
**/
public class SubscriptionsCreateRequest extends HttpRequest<Subscriptions >{
 
	public SubscriptionsCreateRequest() {
		super("/v1/billing/subscriptions", "POST", Subscriptions.class);
		header(Headers.CONTENT_TYPE, "application/json");
		header("Accept", "application/json");
		header("Prefer","return=representation");
	}
	
    public SubscriptionsCreateRequest PayPalRequestId(String PayPalRequestId) {
        header("PayPal-Request-Id", String.valueOf(PayPalRequestId));
        return this;
    }
    
	public SubscriptionsCreateRequest authorization(String authorization) {
        header("Authorization", String.valueOf(authorization));
        return this;
    }
	
	public SubscriptionsCreateRequest prefer(String prefer) {
        header("Prefer", String.valueOf(prefer));
        return this;
    }
	
	public SubscriptionsCreateRequest requestBody(SubscriptionsRequest body) {
        super.requestBody(body);
        return this;
    }
}
